RC4: Fixed minor login problem

Now when logged as customer it is not possible to view worker ui and
vice versa.