Added basic validation and different actions

Added validation for adding new user. Also made sure the values stay in
the fields when there is an error. Rewritten some links using site_url()
so that routing does not cause any problems.