add trim() to input field in registration and login page