fix login redirect
create views pages directory
fix edit error