Fixed bug in method #after_sign_in_path (application_controller).
The bug was causing a redirect loop.

refs #1242