resignFirstResponder after click login or register button