add tags to gitignore (created using ctags)
solve recursion issue when recover password #496

Also add check on external authentication