User creation, login, logout, session creation and form validation