fix rspec test case for login, add prompt message for login