Makes authenticate_user! work