Email validation continued
Some session manipulation and general refactoring
Some Security additions