adding login hook to the template [AEROGEAR-1225]