Login redirect works properly