move auth logic to controller
Merge branch 'master' of https://github.com/noj33/JAB_project