Fully implemented authentication and cracked, closes #16 and fixed some other bugs