Added login funtionality and modified md5 detection.