A sample project for login alerts that uses UIAlertController on iOS 8.0+ but UIAlertView for iOS < 8.0