added email based user authentication