Fix permissions issue with user login