fixed error with success response for login
some fixes