various additions

- added the password salt
- added image resizing
- added image validation
- various bug fixes