Fix check for current_user session value

Remove spike test code for better implementation.