Add Registration Logic