Improved login with success and error flash messages, added reset on successful login