Fixed broken login link and redirect properly (I think).