user registration & misc fixes