Adds login mechanism