added if check for user login and fixed syntax
Merge branch 'master' of https://github.com/charifmews/oblie