implemented basic user registration functionality (confirmation not done yet)