changing register to login upon registration