Moving the authentication into a designated Class