added login funtionality to home page