Fixed profile display issue, added some security