Fixes issue with login form Validation