Added login validation
Added login validation