fixing flash error on user login 

why: app was breaking before bug corrected