Authentication using MEAN.IO stack