working on registerModel and loginModel