Added: authenticating, error checking, and menu