Registration functionality done