getting login validation