Created an AlertDialog that allows user to log in.