Added registration validation
Added login validation