fixed http errorcode exception. added Registration class and layout