fix form, model and login