Revert "Static Profile & check user is logged in function"

This reverts commit 3bfcc817da54f8aa0f7a340542a59ed9c3ae3c3a.
Revert "Revert "Static Profile & check user is logged in function""

This reverts commit cb4f866366f849622826068ede0f83f4b3e368fb.