Adding in option to set user to null (logged out)