Added the ability to log users in and out