Added pin scaffold and authenticated the users based on login