change to using username rather than email to login