Added logout script, added md5 encryption to password