Checks login credential and if email already exists