login validation updated