added getByEmail in user class