added user authentication code, created register page, added signout link