added guard and spork
update the authentication system