Moving authenticate to app struct