small security things
add defined check at 2 views
Merge pull request #7 from sv3tli0/master

Small security fixes