Moved logout function below login function