Fixed syntax error in profile and typos in authority.rb