registration logic beta version implemented