home_controller invalid creds test and implementation