fixed input validation, now image is also validated
Merge branch 'master' of https://github.com/frejlev/teamxp
minor change in input validation