Added md5 hash and login function. Also connected to database.