Added functionality to allow users to sign up.