Added flash messages for invalid credentials