adds registration and login process