test for login and bug fix