login validation now works.