Change something.

1. Use UITextField's text property instead of accessibilityValue.
2. Define variable when it's needed.
3. Format code(UIAlertView).