Fixed a bug in redirecting registered user from home page to workspace