Added validatons for login and registration
Added validatons for login and registration