Adding notification and behaviour on login
Moving the authenticate out from routes