Added validation for fields in Login and Registration