login validation-redone