Secured app by adding login functionality