Got registration process working