some refactored, but reg popup at header is done
Many code refactored. Fixed bug with invalid email at registration in popup.
Merge branch 'develop' of https://github.com/PerminovEugene/CardsProject into develop