added form validation to auto load
added login form and model