added logic to display signin, login, logout but have some erros