added code for matching password length at login page