rails: devise redirecting users when logged in to another path. The function should be placed in application_controller.rb