Added the ability to log a user in and out for testing user functions.