many bug fixes and added some functions

users will have to be logged in in order to view company details.
restricted guests from viewing or updating other user profile. styled
many pages.