Replace find_by with find_by_email to be compatible with rails 3.2