Adds status code to login failure