Tideied up login and added null response, repeated response and non-specific response handling