Update login.rb

if type not dashboard goes to link, otherwise nothing.