minor style changes, implemented user registration