added tests for login validation
[#1]