Added tooltip and JS validation for registration and login