Angular auth

Implemented auth as described in #39 
Wrong indentation