Changed authentication to use Active record with bcrypt hashes.