fix signup and login and added logout logic