Rewriten doPost method for working with multipart enctype (User can
upload his foto). 
TODO: refactor!