removed unused templates.

redirect to previous page on login or sign up.
improves in models