log in and flash errors work