Adding custom registration and login functionality