Saving login response and checking that user has logged in