setting up login and registration