login by username or email

Signed-off-by: Alexander Skjolden <alex@plastboks.net>