added account registration and related stuff