Do you want your login/register process to be seamless?
Just add this awesome modal that is easy to customize instead of creating new pages: http://www.creative-tim.com/product/login-and-register-modal
Besides not making the user leave to current page, it provides an awesome animation on validation. You should check out. The shake is really intuitive for anyone registering or logging in.
The same one is used in CreativeTim - so if you enjoyed registering to Tim, you know what to do to have it too!