add registration form and fixed bugs in signin form