refactored with a user model, defined current_user method, test suite green