finishing signup and starting login functionality