change config,main,user,index,main_view.php

changed session settings
added signup button and logout button
added redirection function