added tap gesture to dismiss keyboard while tapping on the screen on the registration page and login page