Added registration and authentication features.