Created authentication mechanism and fixing cs for use with ror