added minimal authentication and account registration