Refactored and updated login logic. Cannot use a private command without logging in.