Removed the resign first responder call because it causes the keyboard to animate in and out very fast which is a poor experience for the user.