added sign up logic to the application