Updated rails for security