add img file
inprovement login and register function