Implementing authentication. Fixing Bugs.