fixes for migrations bugs, added rediredct for user sessio controller