fix bug with login. understand how to work roles