Fixed login by changing application hmtl form to rails form builder and ...

...session controller local user variable