Update Dialog and main class

Added clearing the screen for Dialog
Fixed wrapping bug for Dialog

Moved Authenticate to its own method, authentication now working.