added basic registration for users (username-password only)