fix addAGLogin

This makes sure emails are always stripped and lowered, and that the ag_login_id of the new user is always returned.