changed saving from username to email