Authorization authentication for login/logout/register