fixed some issues, added proper registration form