Removed global functions in controllers
- Added simple authentication process
Using watch instead of promises