changed validation and design of login page