Added password encryption. Fixed some other stuff