Add login funtionality.