Authenticate users and redirec them acordig to role