Updated to use one() instead of all() when getting sessionUser, login, and register.