added flash messages for login and signup