Added preload to register and login
Added client side validations to login