added in bcrypt authentication and a million bug fixes