Added functionality to create and account for user.