Implemented SHA-512 hashing of passwords for authentication