added credentials controller and view