Added requires for lib/log.rb and lib/user.rb
Eliminated extraneous variable @action