createUser done - now logs the user in after a user has been created. Finished setUser method in index