added functionality of signup