Added .grunt to .gitignore.
Refactoring of userAuth() method.