Added redirect for reg users. authenticate users added in answer and solutions