Alert Dialog

Improved the alert dialog and added some functions to the User class to
streamline the code