Fixed error stopping users changing email