fixed some problems with uninitialized variables as well as a gaping security hole (0 is true in ruby)
fixed some problems with uninitialized variables as well as a gaping security hole (0 is true in ruby)

asquared/authenticates_access