took out all useless api functions that were leftover from backend, made login form redirect to forgotten password when email already exists in database