major login part, registration of new user