added email field, added authentications