Added md5 crypto function and modified login