fixing the user login as test framework