fixing some php warnings
add routing for accounts