#JC-1622:
* Added redirect to referer apge when user is logged in