separated authentication process from menu process