set user permissions
fix sign-in errors