fixed errors in users controller