Added functionality for sign in