fixed login redirect, removed bulky dashboard code, finished registration for normal users