enable login via email and Authorizing user with AD