added support for user registration, activation, and login