added md5 and register functionality