Use proper way to check authenticated users
indent