added current_user check to layout