improved success and warning messages for login functionality