Check for username and password lengths during registration
Check for username and password lengths during login