Added more unit testing and more feature tests for failing logins