Changed redirect_to authorized_user  to redirect_to(:controller => 'static_pages', :action => 'home')