[IMP]Merged with latest and changed the logic of onchange login, no need to test whether image exist or not, simply send d=404 in query string so if error is not there then it will raise 404 not found exception.